/**

 */
package com.adkfp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.adkfp.bean.ADKActimeBean;
import com.adkfp.dao.ADKActimeDaoMapper;
import com.adkfp.service.IADKActimeService;

/**
 * class name:SelectclassAction <BR>
 * class description: please write your description <BR>
 * Remark: <BR>
 * @version 1.00 2019年2月20日
 * @author ADK)zhoulin
 */
@Service("aDKActimeService")
public class ADKActimeServiceImpl implements IADKActimeService{
	@Resource
	private ADKActimeDaoMapper aDKActimeMapper;

	/**
	 * @Override
	 * Method name: insert <BR>
	 * Description: 插入一条记录 <BR>
	 * Remark: <BR>
	 * @param bean  <BR>
	*/
	@Override
	@Transactional
	public void insert(ADKActimeBean bean) {
		aDKActimeMapper.insert(bean);
	}

	/**
	 * @Override
	 * Method name: delete <BR>
	 * Description: 删除一条记录 <BR>
	 * Remark: <BR>
	 * @param id  <BR>
	*/
	@Override
	@Transactional
	public void delete(Integer id) {
		aDKActimeMapper.delete(id);
	}

	/**
	 * @Override
	 * Method name: update <BR>
	 * Description: 更新一条记录 <BR>
	 * Remark: <BR>
	 * @param bean  <BR>
	*/
	@Override
	@Transactional
	public void update(ADKActimeBean bean) {
		aDKActimeMapper.update(bean);
	}

	/**
	 * @Override
	 * Method name: findById <BR>
	 * Description: 根据id获取一条记录 <BR>
	 * Remark: <BR>
	 * @param id
	 * @return  <BR>
	*/
	@Override
	public ADKActimeBean findById(Integer id) {
		return aDKActimeMapper.findById(id);
	}

	/**
	 * @Override
	 * Method name: findByCondition <BR>
	 * Description: 根据bean里面的条件(判空)查询所有记录 <BR>
	 * Remark: <BR>
	 * @param bean
	 * @return  <BR>
	*/
	@Override
	@Transactional
	public List<ADKActimeBean> findByCondition(ADKActimeBean bean) {
		return aDKActimeMapper.findByCondition(bean);
	}

	/**
	 * @Override
	 * Method name: findByConditionCount <BR>
	 * Description: 根据bean里面的条件(判空)查询所有记录条数 <BR>
	 * Remark: <BR>
	 * @param bean
	 * @return  <BR>
	*/
	@Override
	@Transactional
	public long findByConditionCount(ADKActimeBean bean) {
		return aDKActimeMapper.findByConditionCount(bean);
	}

	//用于权限组-门权限（下拉框）
	@Override
	@Transactional
	public List<ADKActimeBean> findtime() {
		// TODO Auto-generated method stub
		return aDKActimeMapper.findtime();
	}

}
